package cn.gary.oaserver.mapper;

import cn.gary.oaserver.entity.TAdminRole;
import cn.gary.oaserver.entity.TMenu;
import cn.gary.oaserver.entity.TRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gary
 * @since 2024-03-15
 */
public interface TRoleMapper extends BaseMapper<TRole> {

    List<TAdminRole> getListByAdminId(Integer adminId);

    List<TMenu> findMenuByRoleId(Integer rid);
}
